package com.aspose.cells;

import java.util.ArrayList;

public class PivotFormatCondition {
   PivotFormatConditionCollection a;
   ArrayList b;
   int c;
   int d;
   int e;
   FormatConditionCollection f;

   PivotFormatCondition(PivotFormatConditionCollection pivoFmtConds, boolean addList) {
      this.a = pivoFmtConds;
      if (this.b == null) {
         this.b = new ArrayList();
      }

      if (addList) {
         zbro var3 = new zbro();
         var3.f(false);
         zbqw var4 = new zbqw();
         com.aspose.cells.b.a.a.ze.a(var3.e, (Object)var4);
         var4.b((int)65534);
         var4.a(false);
         var4.c = new ArrayList();
         com.aspose.cells.b.a.a.ze.a(var4.c, (Object)0);
         com.aspose.cells.b.a.a.ze.a(this.b, (Object)var3);
         this.f = new FormatConditionCollection(this.a.b);
         this.f.d = true;
         this.a.b.getConditionalFormattings().a(this.f);
      }

      this.d = 2;
      this.e = 0;
   }

   public int getScopeType() {
      return this.d;
   }

   public void setScopeType(int value) {
      this.d = value;
   }

   public int getRuleType() {
      return this.e;
   }

   public void setRuleType(int value) {
      this.e = value;
   }

   FormatConditionCollection a() {
      zavb.a(this.a.b, this);
      return this.f;
   }

   public FormatConditionCollection getFormatConditions() {
      return this.f;
   }

   void a(PivotFormatCondition var1) {
      this.c = var1.c;
      this.d = var1.d;
      this.e = var1.getRuleType();
      this.b = new ArrayList();

      for(int var2 = 0; var2 < var1.b.size(); ++var2) {
         zbro var3 = (zbro)var1.b.get(var2);
         com.aspose.cells.b.a.a.ze.a(this.b, (Object)var3);
      }

      this.f = new FormatConditionCollection(var1.f.a);
      this.f.a(var1.f, (CopyOptions)null);
   }
}
